export function useReadyAll(immediate = false) {
  const depositReadyQry = useQuery({
    enabled: immediate,
    queryKey: [apis.apiFundDepositReadyAll.id],
    queryFn: () => apis.apiFundDepositReadyAll({ currency: '' }),
  });

  const refetchDepositReady = depositReadyQry.refetch;

  const withdrawReadyQry = useQuery({
    enabled: immediate,
    queryKey: [apis.apiFundWithdrawReadyAll.id],
    queryFn: () => apis.apiFundWithdrawReadyAll({ currency: '' }),
  });

  const refetchWithdrawReady = withdrawReadyQry.refetch;

  return { depositReadyQry, withdrawReadyQry, refetchDepositReady, refetchWithdrawReady };
}

export type UseReadyAllReturn = ReturnType<typeof useReadyAll>;
